FROM maven:3.5-jdk-8-alpine2 as builder

# Copy local caode to the container image
WORKDIR /app
COPY pom.xml .
COPY src ./src

#Build a release artifact
RUN mvn package -DskipTests

# Run the web service on container startup.
CMD ["java","-jar","/app/target/user_center-0.0.1-SNAPSHOP.jar","--spring.profiles.active=prod"]